﻿Jxstar.currentPage = function() {
	var config = {param:{},initpage:function(page, define){},eventcfg:{}};
	
	var auditData = Jxstar.findComboData('audit');
	var items = [{
		height: '97%',
		width: '97%',
		border: false,
		layout: 'form',
		style: 'padding:10px;',
		items: [{
			anchor:'100%',
			border: false,
			layout:'column',
			border:true,
			xtype:'fieldset',
			title:'项目信息',
			collapsible:false,
			collapsed:false,
			autoHeight:true,
			items:[{
				border:false,
				columnWidth:0.495,
				layout:'form',
				style: 'padding-left:10px;',
				items:[
					{xtype:'trigger', fieldLabel:'项目编号', name:'sj_start__project_code',
						anchor:'100%', triggerClass:'x-form-search-trigger',
						maxLength:20, allowBlank:false, labelStyle:'color:#0000FF;', labelSeparator:'*', editable:false,
						onTriggerClick: function() {
							var selcfg = {pageType:'combogrid', nodeId:'project_select', layoutPage:'', sourceField:'project_base.project_code;project_id;project_name;project_user;project_userid;dept_id;dept_name;project_money;contract_money', targetField:'sj_start.project_code;project_id;project_name;project_user;project_userid;dept_id;dept_name;project_money;contract_money', whereSql:"project_status >= '2' and project_status <= '4'", whereValue:'', whereType:'', isSame:'0', isShowData:'1', isMoreSelect:'0',isReadonly:'1',fieldName:'sj_start.project_code'};
							JxSelect.createSelectWin(selcfg, this, 'node_sj_start_form');
						}},
					{xtype:'textfield', fieldLabel:'项目名称', name:'sj_start__project_name', readOnly:true, anchor:'100%', maxLength:100},
					{xtype:'textfield', fieldLabel:'送审单位', name:'sj_start__dept_name', readOnly:true, anchor:'100%', maxLength:50},
					{xtype:'hidden', fieldLabel:'单位ID', name:'sj_start__dept_id', anchor:'100%'}
				]
			},{
				border:false,
				columnWidth:0.495,
				layout:'form',
				style: 'padding-left:10px;',
				items:[
					{xtype:'combo', fieldLabel:'记录状态', name:'sj_start__auditing', defaultval:'0',
						anchor:'100%', readOnly:true, editable:false,
						store: new Ext.data.SimpleStore({
							fields:['value','text'],
							data: auditData
						}),
						emptyText: jx.star.select,
						mode: 'local',
						triggerAction: 'all',
						valueField: 'value',
						displayField: 'text',
						value: auditData[0][0]},
					{xtype:'textfield', fieldLabel:'工程项目负责人', name:'sj_start__project_user', defaultval:'fun_getUserName()', readOnly:true, anchor:'100%', maxLength:20},
					{xtype:'datefield', fieldLabel:'申请日期', name:'sj_start__start_date', defaultval:'fun_getToday()', format:'Y-m-d', anchor:'100%', readOnly:true},
					{xtype:'hidden', fieldLabel:'项目ID', name:'sj_start__project_id', anchor:'100%'}
				]
			}
			]
		},{
			anchor:'100%',
			border: false,
			layout:'column',
			border:true,
			xtype:'fieldset',
			title:'项目建议书',
			collapsible:false,
			collapsed:false,
			autoHeight:true,
			items:[{
				border:false,
				columnWidth:0.99,
				layout:'form',
				style: 'padding-left:10px;',
				items:[
					{xtype:'textarea', fieldLabel:'批准机关、文号、日期', name:'sj_start__pass_xmjys', allowBlank:false, labelStyle:'color:#0000FF;', labelSeparator:'*', width:'100%', height:48, maxLength:100}
				]
			}
			]
		},{
			anchor:'100%',
			border: false,
			layout:'column',
			border:true,
			xtype:'fieldset',
			title:'可行性研究报告',
			collapsible:false,
			collapsed:false,
			autoHeight:true,
			items:[{
				border:false,
				columnWidth:0.495,
				layout:'form',
				style: 'padding-left:10px;',
				items:[
					{xtype:'textfield', fieldLabel:'编制单位名称、资质', name:'sj_start__dept_bzdw', anchor:'100%', maxLength:50},
					{xtype:'textfield', fieldLabel:'批准机关、文号、日期', name:'sj_start__pass_kxxyjbg', anchor:'100%', maxLength:100},
					{xtype:'hidden', fieldLabel:'工程项目负责人ID', name:'sj_start__project_userid', anchor:'100%'}
				]
			},{
				border:false,
				columnWidth:0.495,
				layout:'form',
				style: 'padding-left:10px;',
				items:[
					{xtype:'textfield', fieldLabel:'资金来源', name:'sj_start__money_resource', anchor:'100%', maxLength:50},
					{xtype:'textfield', fieldLabel:'建设规模', name:'sj_start__createsize', anchor:'100%', maxLength:50},
					{xtype:'hidden', fieldLabel:'主键', name:'sj_start__sj_start_id', anchor:'100%'}
				]
			}
			]
		},{
			anchor:'100%',
			border: false,
			layout:'column',
			border:true,
			xtype:'fieldset',
			title:'初步设计情况',
			collapsible:false,
			collapsed:false,
			autoHeight:true,
			items:[{
				border:false,
				columnWidth:0.495,
				layout:'form',
				style: 'padding-left:10px;',
				items:[
					{xtype:'textfield', fieldLabel:'设计单位名称、资质', name:'sj_start__dept_sjdw', anchor:'100%', maxLength:50},
					{xtype:'textfield', fieldLabel:'批准机关、文号、日期', name:'sj_start__pass_cbsjqk', anchor:'100%', maxLength:100},
					{xtype:'numberfield', decimalPrecision:6, fieldLabel:'批准总概算(万元)', name:'sj_start__project_money', anchor:'100%', maxLength:12},
					{xtype:'textfield', fieldLabel:'建设工期', name:'sj_start__createproject_time', anchor:'100%', maxLength:50},
					{xtype:'textfield', fieldLabel:'建设单位', name:'sj_start__create_dept', anchor:'100%', maxLength:50},
					{xtype:'numberfield', decimalPrecision:6, fieldLabel:'合同金额(万元)', name:'sj_start__contract_money', anchor:'100%', maxLength:12}
				]
			},{
				border:false,
				columnWidth:0.495,
				layout:'form',
				style: 'padding-left:10px;',
				items:[
					{xtype:'textfield', fieldLabel:'选取方式', name:'sj_start__choose_method', anchor:'100%', maxLength:50},
					{xtype:'textfield', fieldLabel:'批准文号内容', name:'sj_start__pass_codecontent', anchor:'100%', maxLength:100},
					{xtype:'textarea', fieldLabel:'建设内容', name:'sj_start__build_content', width:'100%', height:96, maxLength:200}
				]
			}
			]
		},{
			anchor:'100%',
			border: false,
			layout:'column',
			border:true,
			xtype:'fieldset',
			title:'开工条件落实情况',
			collapsible:false,
			collapsed:false,
			autoHeight:true,
			items:[{
				border:false,
				columnWidth:0.495,
				layout:'form',
				style: 'padding-left:10px;',
				items:[
					{xtype:'textfield', fieldLabel:'建设用地许可证批准单位', name:'sj_start__build_passdept', anchor:'100%', maxLength:50},
					{xtype:'textfield', fieldLabel:'建设用地许可证批准文号、日期', name:'sj_start__pass_jsyd', anchor:'100%', maxLength:100},
					{xtype:'textfield', fieldLabel:'批准征地面积', name:'sj_start__pass_call_area', anchor:'100%', maxLength:50},
					{xtype:'textfield', fieldLabel:'七通一平情况', name:'sj_start__qitong_thing', anchor:'100%', maxLength:50},
					{xtype:'datefield', fieldLabel:'计划开工时间', name:'sj_start__plan_start_date', format:'Y-m-d', anchor:'100%'}
				]
			},{
				border:false,
				columnWidth:0.495,
				layout:'form',
				style: 'padding-left:10px;',
				items:[
					{xtype:'textfield', fieldLabel:'建筑规划许可证批准单位', name:'sj_start__buildpassdept', anchor:'100%', maxLength:50},
					{xtype:'textfield', fieldLabel:'建筑规划许可证批准文号、日期', name:'sj_start__pass_jzgh', anchor:'100%', maxLength:100},
					{xtype:'textfield', fieldLabel:'批准建筑面积', name:'sj_start__passbuild_area', anchor:'100%', maxLength:50},
					{xtype:'textfield', fieldLabel:'资金到位情况', name:'sj_start__money_send', anchor:'100%', maxLength:50},
					{xtype:'datefield', fieldLabel:'计划竣工时间', name:'sj_start__plan_end_date', format:'Y-m-d', anchor:'100%'}
				]
			}
			]
		}]
	}];
	
	config.param = {
		items: items,
		funid: 'sj_start'
	};

	
	
	return new Jxstar.FormNode(config);
}